
from langchain.schema import (
    HumanMessage,
)
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler

from config.model_config import get_chat_openai_xin

chat = get_chat_openai_xin(callbacks=[StreamingStdOutCallbackHandler()])
resp = chat([HumanMessage(content="Write me a song about sparkling water.")])
print(resp)